package top.glike.ssl.auto.config;

/**
 * packageName top.glike.ssl.auto.config
 *
 * @author Sophia
 * @className SshServerConfig
 * @description TODO
 * @date 2025/10/13
 */

import lombok.Data;

@Data
public class SshServerConfig {

    private String host;
    private int port = 22;
    private String username;
    private String password;
    private String privateKeyPath; // SSH私钥路径
    private String privateKeyPassphrase; // 私钥密码(可选)
    private int timeout = 30000; // 连接超时时间(毫秒)

    public SshServerConfig(String host, String username, String password) {
        this.host = host;
        this.username = username;
        this.password = password;
    }

    public SshServerConfig(String host, String username, String privateKeyPath, String privateKeyPassphrase) {
        this.host = host;
        this.username = username;
        this.privateKeyPath = privateKeyPath;
        this.privateKeyPassphrase = privateKeyPassphrase;
    }
}
